<!--作者：HQS
	时间：2018-07-15
	描述：战队主页
-->
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>战队主页</title>
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	<link rel="icon" href="img/favicon.ico" mce_href="http://pd51ux91p.bkt.clouddn.com/favicon.ico" type="image/x-icon">
	<link rel="stylesheet" type="text/css" href="css/commonality.css"/>
	<link rel="stylesheet" type="text/css" href="css/edg_website3.css"/>
	<script src="js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="//cstaticdun.126.net/load.min.js"></script>
	<script src="js/layer.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
	<div class="pc" style="display: none;">
		<!--头部导航菜单-->
		<div class="top">
			<div class="top_div">
				<a class="logo" href="index.html"><img src="http://pd51ux91p.bkt.clouddn.com/public/logo.png"/></a>
				<ul><li><a href="index.html">首页</a></li>
					<li><a href="game.html">游戏</a></li>
					<li><a href="edg.html">战队</a></li>
					<li><a href="guide.html">办赛指南</a></li>
					<li><a href="userCenter.html">注册/登录</a></li>
					<li><a href="javascript:;">创建战队</a></li>
				</ul>
			</div>
		</div>
		
		<!--主体-->
		<div class="main dis_block">

			<!--平台KV-->
			<div class="banner">
				<div class="banner_bg banner_bg1"></div>
				<div class="banner_bg banner_bg2"></div>
				<div class="banner_bg banner_bg3"></div>
				<div class="banner_bg banner_bg4"></div>
				<div class="banner_bg banner_bg5"></div>
			</div>
			
			<!--战队排行-->
			<div class="standings">
				<div class="standings_div">
					
				</div>
			</div>
			
			<!--明星战队-->
			<div class="TopGamer" id="ambassador">
				<p>赛事标题</p>
				<div class="TopGamer_div">
					<!--直播视频-->
					<div class="sinatv">
						
					</div>
					<!--赛事竞猜-->
					<div class="guess">
						
					</div>
				</div>
			</div>
		
			<!--明星队长-->
			<div class="StarCaptain">
				<div class="StarCaptain_div">
					<!--战队榜-->
					<div class="edg">
						
					</div>
					<!--赛事榜-->
					<div class="Competition">
						
					</div>
				</div>
			</div>
		
			
			
			<!--联系我们-->
			<div class="about" id="about">
				<div class="about_main">
					<p class="about_title">联系我们</p>
					<p class="about_describe">我们总是乐于帮助你，请选择最适合你的方式联系我们！ </p>
					<div class="about_address">
						<p style="margin-top: 8px;">总址：上海市闵行区虹井路288号B座703室</p>
						<p>分部：广州市天河区广州信息港方圆E时光西座28楼</p>
						<p>邮编：510000</p>
						<p>电话：+86 13901779476</p>
						<p>&nbsp;</p>
						<p>网址：www.juyouxiao.com</p>
						<p>E-mail：hr@tianchangtech.com</p>
					</div>
					
					
					<div class="toastInfo"><span>提醒</span></div>
				</div>
				<ul class="foot">
					<li><a href="index.html">首页</a></li>
					<li><a href="javascript:;">校园大使</a></li>
					<li><a href="javascript:;">关于我们</a></li>
				</ul>
				<p class="provider">京公网安备11010802023605号</p>
			</div>
		</div>
		
		<!--点击回到顶部-->
		<a id="com_d" style="display: none;"></a>
	</div>
	
	<div class="mobile fix" style="display: block;">
		<!--底部 导航 菜单-->
		<div class="top">
			<ul><li><a href="index.html">
						<img src="http://pd51ux91p.bkt.clouddn.com/public/icon_navigation_1.png"/>
						<p>首页</p>
					</a>
				</li>
				<li><a href="javascript:;">
						<img src="http://pd51ux91p.bkt.clouddn.com/public/icon_navigation_2.png"/>
						<p>看帖</p>
					</a>
				</li>
				<li><a href="javascript:;"><img class="increase" src="http://pd51ux91p.bkt.clouddn.com/public/icon_navigation_3.png"/></a></li>
				<li><a href="edg.html">
						<img src="http://pd51ux91p.bkt.clouddn.com/public/icon_navigation_4.png"/>
						<p>战队</p>
					</a>
				</li>
				<li><a id="_Usercenter">
						<img src="http://pd51ux91p.bkt.clouddn.com/public/icon_navigation_5.png"/>
						<p>我的</p>
					</a>
				</li>
			</ul>
		</div>
		
		<div class="head shadow fix">
			<!--顶部个人信息-->
			<div class="information shadow2 fix"></div>
		</div>

		<!--成员管理-->
		<div class="management shadow fix">
			<div class="managementTitle fix">
				
			</div>
				
			<div class="content fix">
				<div class="swiper-container" id="bannerSwiper">
					<div class="swiper-wrapper"></div>
					<ul class="pagination" id="bannerpagination"></ul>
				</div>
				<a class="ButtonStyle AleftButton" href="javascript:;"><img src="img/edg_website/icon_left2.png"/></a>
				<a class="ButtonStyle ArightButton" href="javascript:;"><img src="img/edg_website/icon_right2.png"/></a>
			</div>
		</div>
		
		<!--赛事管理-->
		<div class="OFFICIALS shadow fix">
			<p class="contentHeader"><img src="http://pd51ux91p.bkt.clouddn.com/public/icon_2.png"/>赛事管理</p>
		</div>
		
		<!--战队荣誉-->
		<div class="personalHonor fix">
			<p class="contentHeader"><img src="http://pd51ux91p.bkt.clouddn.com/edg_website/icon_honor.png"/>战队荣誉</p>
			<!--<p class="notHave">暂时还没有荣誉喔~</p>-->
			<!-- <div class="events shadow2 fix">
				<a class="fix" href="javascript:;">
					<div class="eventsMain">
						<p class="description"><img src="img/icon_AllGames2.png"/>2018ZUEL 浙江省高校电子竞技联赛春季赛</p>
						<p class="eventsName">联赛春季塞</p>
						<p class="time">2018-05-29</p>
					</div>
					<div class="trophyx" href="javascript:;"><img src="img/edg_website/icon_copper.png"/></div>
				</a>
			</div> -->
		</div>
		<button class="recruit dis_none" id="recruit" type="button">一键招募</button>
		
		<!--固定导航-->
		<div class="navigation fix">
			<a class="aButton fix giveReward" id="giveReward" href="javascript:;">
				<img class="giveReward" src="http://pd51ux91p.bkt.clouddn.com/edg_website/giveReward.png"/>
			</a>
			<a class="aButton fix like" id="like" href="javascript:;">
				<img class="giveReward" src="http://pd51ux91p.bkt.clouddn.com/edg_website/like.png"/>
			</a>
		</div>
		
		<!--弹窗-->
		<aside id="bg" class="bg">
			<i class="bg_overlay hideAside" title="遮罩层"></i>
			
			<!--退出战队-->
			<div class="union leaveTeam dis_none">
				<p class="style title">确定要退出战队吗？</p>
				<div class="buttonDiv">
					<button class="leftButton" id="leaveTeamAffirm" type="button">确定</button>
					<button class="rightButton" id="dissolveCancel2" type="button">取消</button>
				</div>
			</div>
			
			<!--申请加入-->
			<div class="union applyTeam fix dis_none">
				<p class="style title">确定要申请加入吗？</p>
				<textarea class="leaveWord" id="leaveWord" maxlength="20" placeholder="请输入您的申请留言"></textarea>
				<div class="buttonDiv">
					<button class="leftButton" id="applyTeamAffirm" type="button">确定</button>
					<button class="rightButton" id="dissolveCancel3" type="button">取消</button>
				</div>
			</div>
			
			<!--解散战队-->
			<div class="union dissolveTeam dis_none">
				<p class="style title marginHeight">确定要解散战队吗？</p>
				<div class="buttonDiv">
					<button class="leftButton" id="dissolveAffirm" type="button">确定</button>
					<button class="rightButton" id="dissolveCancel1" type="button">取消</button>
				</div>
			</div>
			
			<!--解散战队  手机验证-->
			<div class="union verify dis_none">
				<p class="style title">请验证手机号码？</p>
				<div class="numberDiv">
					<input type="number" name="" id="telephone" placeholder="请输入手机号码" value="" maxlength="11" onkeyup="judgeIsNonNull1(event)" />
					<img class="telClear dis_none" src="http://pd51ux91p.bkt.clouddn.com/public/delicon.png">
				</div>
				<div class="verifyNumDiv fix">
					<input class="verifyNum" type="number" id="messageCode" placeholder="请输入验证码" value="" maxlength="8" onkeyup="judgeIsNonNull2(event)" />
					<img class="codeClear dis_none" src="http://pd51ux91p.bkt.clouddn.com/public/delicon.png">
					<input class="readonly" type="text" readonly="readonly" value="获取验证码" id="resend">
				</div>
				<div class="buttonDiv">
					<button class="leftButton" id="verifyAffirm" type="button">确定</button>
					<button class="rightButton" id="dissolveCancel31" type="button">取消</button>
				</div>
			</div>
			<div id="captcha"> </div>
			<!--参赛队员-->
			<div class="union takePart fix dis_none">
				<!-- <p class="style title">参赛队员  <span><i class="num playerNum" id="takePartNum" data-value = "6">1</i>/6</span></p>
				<div class="content fix scrollable">
					<div class="selectDiv fix">
						<div class="module module1"><div class="borderDiv"><span class="pitchUp moduleBGcolor2" data-val="1"></span></div></div>
						<div class="module module2"><img class="playerLogo" src="img/icon_head.png"></div>
						<div class="module module3"><span class="playerName">1金刚狼</span></div>
					</div>
				</div>
				<div class="buttonDiv"><button class="leftButton" id="EntryAffirm" type="button">确定</button></div>
				
				<span class="ShutDown" id="">X</span> -->
				
			</div>
			
			<!--队员管理-->
			<div class="union manage dis_none">
				<p class="style title">队员管理</p>
				<div class="content fix">
					<div class="module">
						<div class="moduleLeft"><input type="checkbox" name="viceCaptain" class="onchange" id="viceCaptain" value=""/></div>
						<div class="moduleRight"><label for="viceCaptain">副队长</label></div>
					</div>
					<div class="module">
						<div class="moduleLeft"><input type="checkbox" name="teamMember" class="onchange" id="teamMember" value=""/></div>
						<div class="moduleRight"><label for="teamMember">队员</label></div>
					</div>
					<div class="module">
						<div class="moduleLeft"><input type="checkbox" name="kickOut" class="onchange" id="kickOut" value=""/></div>
						<div class="moduleRight"><label for="kickOut">踢出</label></div>
					</div>
				</div>
				<div class="buttonDiv">
					<button class="leftButton" id="manageAffirm" type="button">确定</button>
				</div>
			</div>
		
			<!--分享至-->
			<div class="share fix dis_none">
				<div class="titleDiv"><p class="title">分享至</p></div>
				
				<div class="content fix">
					<div class="styleHeight styleHeight1">
						<a class="aShare" id="shareWehcat" href="javascript:;">
							<img src="http://pd51ux91p.bkt.clouddn.com/edg_website/icon_wehcat.png"/>
							<p>微信好友</p>
						</a>
					</div>
					<div class="styleHeight styleHeight2">
						<a class="aShare" id="sharefriends" href="javascript:;">
							<img src="http://pd51ux91p.bkt.clouddn.com/edg_website/icon_friends.png"/>
							<p>朋友圈</p>
						</a>
					</div>
					<div class="styleHeight styleHeight3">
						<a class="aShare" id="shareqqspace" href="javascript:;">
							<img src="http://pd51ux91p.bkt.clouddn.com/edg_website/icon_qqspace.png"/>
							<p>QQ空间</p>
						</a>
					</div>
					<div class="styleHeight styleHeight4">
						<a class="aShare" id="shareqq" href="javascript:;">
							<img src="http://pd51ux91p.bkt.clouddn.com/edg_website/icon_qq.png"/>
							<p>QQ好友</p>
						</a>
					</div>
				</div>
			</div>
		</aside>
	</div>

	<script src="js/sUserAgent.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/zepto.min.js"></script>
	<script src="js/popup.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/swiper-3.4.2.min.js"></script>
	<script src="js/edg_website1.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		function judgeIsNonNull1(event){
			var value=$("#telephone").val();
			var x = event.which || event.keyCode;
			if (x == 8 ) {
		  		if(value !== "" ){
			      	$(".telClear").removeClass("dis_none").addClass("dis_block");
			    }else{
			    	$(".telClear").removeClass("dis_block").addClass("dis_none");
			    }
			}
			if(value !== "" ){
				if( value.length <= 11 ){
		    		console.log("符合11位数以内");
		    	} else{
		    		return $("#telephone").val(value.substr(0, 11));
		    	}
		    	$(".telClear").removeClass("dis_none").addClass("dis_block");
		    }else{
		    	$(".telClear").removeClass("dis_block").addClass("dis_none");
		    }
		}
		function judgeIsNonNull2(event){
		  	var value=$("#messageCode").val();
		  	var x = event.which || event.keyCode;
			if (x == 8 ) {
			  	if(value !== ""){
			      	$(".codeClear").removeClass("dis_none").addClass("dis_block");
			    }else{
			    	$(".codeClear").removeClass("dis_block").addClass("dis_none");
			    }
		  	}
			if(value !== ""){
				if( value.length <= 6 ){
		    		console.log("符合 6位数以内");
		    	} else{
		    		return $("#messageCode").val(value.substr(0, 6));
		    	}
		    	$(".codeClear").removeClass("dis_none").addClass("dis_block");
		    }else{
		    	$(".codeClear").removeClass("dis_block").addClass("dis_none");
		    }
		}
		$('.telClear').click(function(){
		    $('#telephone').val("");
		    $(".telClear").removeClass("dis_block").addClass("dis_none");
		});
		$('.codeClear').click(function(){
		    $('#messageCode').val("");
		    $(".codeClear").removeClass("dis_block").addClass("dis_none");
		});

	    
	</script>
	
	<!--微信分享-->
	<script type="text/javascript" src = "https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
	<script>
		_url=location.href;
		e_data = ''
		$.ajax({
			type : "post",
			url : "/api/wxshare/",
            data:JSON.stringify({"url":_url,"team_id":getUrlParms('team_id')}),
            contentType:"application/json",
            dataType:"json",
			success : function(res){
				// signature  = data.data.signature
				if (res.code==0){
					e_data = res.e_data
					wx.config({
						// debug: true,
						appId: res.data.appid,
						timestamp: res.data.timestamp,
						nonceStr: res.data.noncestr,
						signature: res.data.signature,
						jsApiList: [
							"onMenuShareTimeline", //分享给好友 
							"onMenuShareAppMessage", //分享到朋友圈 
							"onMenuShareQQ", //分享到QQ
							"onMenuShareWeibo" //分享到微博 
						]
					});
					
				}
			},
		    error:function(data){
		    	alert("连接失败！");
		    }
		});
		wx.ready(function (){
			var shareData = {
					title: '标题',
					desc: '简介',//这里请特别注意是要去除html
					link: _url,
					imgUrl: '题图'
				};
			if (e_data!=''){
				var shareData = {
						title: e_data.events_title,
						desc: e_data.introduce,//这里请特别注意是要去除html
						link: _url,
						imgUrl: e_data.icon
					};				
			}
			document.querySelector("#shareWehcat").onclick = function(){
				
			}
			wx.onMenuShareTimeline(shareData);
			wx.onMenuShareQQ(shareData);
			wx.onMenuShareWeibo(shareData);
			wx.onMenuShareAppMessage(shareData);
			// $("#shareWehcat").on("click",function(){
			// 	console.log(111)
			// 	if(window.WeixinJSBridge){
			// 		wx.onMenuShareTimeline(shareData);
			// 	}
				
			// })

		});
	</script>

</body>
</html>